AlertDialogLayout

Special implementation of linear layout that's capable of laying out alert dialog components.

A dialog consists of up to three panels. All panels are optional, and a dialog may contain only a single panel. The panels are laid out according to the following guidelines:

  • topPanel: exactly wrap_content
  • contentPanel OR customPanel: at most fill_parent, first priority for extra space
  • buttonPanel: at least minHeight, at most wrap_content, second priority for extra space

Constructors

Link copied to clipboard
constructor(@Nullable context: @Nullable Context)
constructor(@Nullable context: @Nullable Context, @Nullable attrs: @Nullable AttributeSet)